using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WB.Entity;
using WB.Entity.Helper;

namespace WB.DaoHelper
{
	public class AspnetUsersDaoBase : BaseProvider
	{
		/// <summary>
		/// Purpose: Class constructor.
		/// </summary>
		public AspnetUsersDaoBase()
		{
			// Nothing for now.
		}
		
		public AspnetUsersEntity SelectOne(Guid UserId)
        {
            AspnetUsersEntity tmp = new AspnetUsersEntity();
            object obj = SelectByKey(tmp, "UserId" , UserId);
            if (obj != null)
                return (AspnetUsersEntity)obj;
            return null;
        }
		
		public AspnetUsersEntity Insert(AspnetUsersEntity entity)
        {
            object returnvalue = ObjectInsert(entity);
            if (returnvalue != null)
                return (AspnetUsersEntity)returnvalue;
            return null;
        }

        public void Update(AspnetUsersEntity entity)
        {
            ObjectUpdate(entity);
        }
	}
}
